#include"cgic.h"
extern char *cgiQueryString;
int cgiMain()
{
	//处理用户的请求 能够处理get请求  
	//http://192.168.100.122:8888/cgi-bin/test.cgi?name=zs&age=18
	

    cgiHeaderContentType("text/html");
	/* Top of the page */ 
	fprintf(cgiOut, "<HTML><HEAD> <meta charset='UTF-8'>\n");
	fprintf(cgiOut, "<TITLE>cgic test</TITLE></HEAD>\n");
	fprintf(cgiOut, "<BODY><H1>%s</H1>\n",cgiQueryString);
    fprintf(cgiOut, "</BODY></HTML>\n");
    return 0;
}